home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Newton Sample Code 1.2 / Proto Templates / RecToggle-2 / README.RecToggle next >
Encoding:
Text File  |  1994-02-28  |  1.5 KB  |  36 lines  |  [TEXT/R*ch]

  1. Copyright © 1993, 1994 by Apple Computer, Inc.  All rights reserved.
  2. by Maurice Sharp
  3.  
  4. This sample gives interrim access to the Recognition Toggle proto (recToggle).
  5. recToggle was accidentally left out of NTK 1.0b4, but will appear later....
  6.  
  7. What is it For?
  8. ---------------
  9.  
  10. The recToggle proto can be used to turn word and shape recognition on
  11. and off. It can also be used to double-tap into the appropriate preference.
  12.  
  13.  
  14. How does it work?
  15. -----------------
  16.  
  17. Any time a user writes/draws into a field that has the input part of the
  18. viewFlags set to vAnythingAllowed, the system will check the state of
  19. text and graphics recognition set by this button. If one or both of the
  20. recognition types have been turned off, no recognition of that type will
  21. be attempted.
  22.  
  23. Ahh you say, vAnythingAllowed, I do not see that as an option for NTK.
  24. You are correct, you have to workaround this. Check out the clEditView
  25. in the recToggleDemo.t file. It has an afterScript (documented elsewhere),
  26. that will set the viewFlags to vAnythingAllowed and vVisible. In other words,
  27. any type of input is valid and it is visible. For a list of possible flags see
  28. the documentation.
  29.  
  30. NOTE: vAnythingAllowed is NOT the same as checking all possible input types
  31.       in NTK. It also involves marking it as Phone & Date & ... you get
  32.       the idea.  (Look at the actual values of the constants in the NTK
  33.       Definitions for more info.)
  34.       
  35. ALSO NOTE: some views use entryFlags instead of viewFlags. Use the same trick
  36.